package com.hspedu.printstream;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @author LiuJinTao
 * @className PrintWriter_
 * @date 2024/06/28 16:09
 * @description TODO
 */
public class PrintWriter_ {
    public static void main(String[] args) throws IOException {
//        PrintWriter printWriter = new PrintWriter(System.out);
        PrintWriter printWriter = new PrintWriter(new FileWriter("e:\\d.txt", true));
        printWriter.print("北京");
        printWriter.close();

    }
}
